﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace devtm.Documentation.CSharpModel
{

    public abstract class CSharpBaseItem : ListItem //, ISupportInvoke
    {


        // Fields
        private object _parent;


        // Methods
        protected CSharpBaseItem(object parent)
        {
            this._parent = parent;
        }


        //protected ImageSource GetGlyph(StandardGlyphGroup group, StandardGlyphItem item)
        //{            

        //    IGlyphService service = GlyphService.GetService();
        //    if (service == null)            
        //        return null;
            
        //    return service.GetGlyph(group, item);

        //}


        public virtual bool Invoke()
        {
            return false;
        }



        // Properties
        //public abstract ImageSource Icon { get; }


        public virtual object Parent
        {
            get { return this._parent; }
            protected set { this._parent = value; }
        }

        public override string Title { get { throw new NotImplementedException(); } }

    }



}
